# # 标题
cmake_minimum_required(VERSION 3.10.0)

# 设置c++标准
set(CMAKE_XCC_STANDARD 17)
set(CMAKE_XCC_STANDARD_REQUIRED True)


# 添加可执行文件
project(HttpServer VERSION 0.1.0 LANGUAGES C CXX)
set(TARGET ${PROJECT_NAME}-${CMAKE_SYSTEM_NAME}) #根据平台重命名可执行文件
add_executable(${TARGET} HttpLearn/HttpServer.cpp)

project(YUVChange VERSION 0.1.0 LANGUAGES C CXX)
set(TARGET ${PROJECT_NAME}-${CMAKE_SYSTEM_NAME}) #根据平台重命名可执行文件
add_executable(${TARGET} Leanrn/YUVChangeRGB.cpp)

project(MyLogs VERSION 0.1.0 LANGUAGES C CXX)
set(TARGET ${PROJECT_NAME}-${CMAKE_SYSTEM_NAME}) #根据平台重命名可执行文件
add_executable(${TARGET} Leanrn/MyLog.cpp)

project(Student VERSION 0.1.0 LANGUAGES C CXX)
set(TARGET ${PROJECT_NAME}-${CMAKE_SYSTEM_NAME}) #根据平台重命名可执行文件
add_executable(${TARGET} Leanrn/StudentNumber.cpp)

project(CsvChange VERSION 0.1.0 LANGUAGES C CXX)
set(TARGET ${PROJECT_NAME}-${CMAKE_SYSTEM_NAME}) #根据平台重命名可执行文件
include_directories("/usr/local/include")
link_directories("/usr/local/lib")
add_executable(${TARGET} Leanrn/csv2excel.cpp)
target_link_libraries(${TARGET} xlsxwriter)